﻿using System;
using System.Collections.Generic;

namespace HDSmartCommunity.Models
{
    public class CemsInfo
    {
        public int cems_id { get; set; }
        public string ceme_ip { get; set; }
    }

    public class ElevatorState
    {
        public int ladderid { get; set; }//梯号
        public int direction { get; set; }//方向 0=停止，1=上行，2=下行
        public int direction_old { get; set; }//电梯停止前方向
        public int floor { get; set; }//显示楼层
        public int Tk { get; set; }//0=退出梯控，1=进入梯控
    }


    public class CEMS_Cmd
    {
        public int DeviceId { get; set; }//设备ID
        public int OutBoundType { get; set; }//外呼类型，0=上行，1=下行
        public int OutBoundFloor { get; set; }//外呼楼层
        public int InBoundFloor { get; set; }//目的楼层
        public int CmdDoor { get; set; }//内呼门类型 0=前门，1=后门
        public DateTime SendTime { get; set; }//发送时间
    }

    //外呼请求平台
    public class OutboundCmd
    {
        public string method { get; set; }
        public OutboundCmdRequestData data { get; set; }
        public int req_id { get; set; }
    }
    public class OutboundCmdRequestData
    {
        public string deviceID { get; set; }//
        public string robotId { get; set; }//机器人编号,唯一ID
        public int carDoor { get; set; }//0=前门，1=后门，默认为前门
        public int desDoor { get; set; }//物理楼层
    }

    //内呼请求平台
    public class InboundCmdRequest
    {
        public string method { get; set; }
        public InboundCmdRequestData data { get; set; }
        public int req_id { get; set; }
    }

    public class InboundCmdRequestData
    {
        public string deviceID { get; set; }//
        public string robotId { get; set; }//机器人编号,唯一ID
        public int carDoor { get; set; }//0=前门，1=后门，默认为前门
        public int desDoor { get; set; }//物理楼层
    }

    public class LiftStatus
    {
        public string method { get; set; }
        public List<LiftStatusData> data { get; set; }
        public int req_id { get; set; }
    }

    public class LiftStatusData
    {
        public string deviceID { get; set; }            // 设备唯一序列号
        public string samplingTime { get; set; }
        public int pFloor { get; set; }
        public int direction { get; set; }
        public int door { get; set; }
        public int fault { get; set; }
        public int oss { get; set; }
    }


}
